package com.zhaojindong.ioc.component.lifecycle.second;

import lombok.extern.log4j.Log4j;
import org.junit.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * created by dean on 2018/8/20
 */
@Log4j
public class SecondTest {

    @Test
    public void testMethod() {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(SecondConfig.class);
        log.info("ioc container created");

        context.close();
    }
}